package com.cxy.caiapiinterface.esdao;

import com.cxy.caiapiinterface.model.dto.post.PostEsDTO;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface PostEsDao extends ElasticsearchRepository<PostEsDTO,Long> {
        List<PostEsDTO> findByUserId(Long userId);

        List<PostEsDTO> findByTitle(String title);
}
